package com.rybbaby.tss.front.tssMemberChangeClassRecord.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 会员转班记录表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-24 下午2:44:30
 */
@Entity
@Table(name = "tss_member_change_class_record")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssMemberChangeClassRecord implements Serializable {
	
	private static final long serialVersionUID = 321563163580356L;
	
	/** 主键 **/
	private String id;
	/** 会员Id **/
	private String  memberId;
	/** 转班前Id **/
	private String beforeClassId;
	/** 转班后Id **/
	private String afterClassId;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
	/** 版本 **/
	private Integer version;
	
	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.Integer 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_member_change_class_recordIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_member_change_class_recordIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * 方法: 取得会员Id
	 *
	 * @return java.lang.Integer 会员Id
	 */
	@Column(name = "memberId", nullable= true, length = 32)
	public String getMemberId() {
		return this.memberId;
	}
	
	/**
	 * 方法: 设置会员Id
	 *
	 * @param memberId 会员Id
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	/**
	 * 方法: 取得转班前Id
	 *
	 * @return java.lang.Integer 转班前Id
	 */
	@Column(name = "beforeClassId", nullable= true, length = 32)
	public String getBeforeClassId() {
		return this.beforeClassId;
	}
	
	/**
	 * 方法: 设置转班前Id
	 *
	 * @param beforeClassId 转班前Id
	 */
	public void setBeforeClassId(String beforeClassId) {
		this.beforeClassId = beforeClassId;
	}
	
	/**
	 * 方法: 取得转班后Id
	 *
	 * @return java.lang.Integer 转班后Id
	 */
	@Column(name = "afterClassId", nullable= true, length = 32)
	public String getAfterClassId() {
		return this.afterClassId;
	}
	
	/**
	 * 方法: 设置转班后Id
	 *
	 * @param afterClassId 转班后Id
	 */
	public void setAfterClassId(String afterClassId) {
		this.afterClassId = afterClassId;
	}
	

	/**
	 * 方法: 取得创建时间
	 *
	 * @return java.sql.Timestamp 创建时间
	 */
	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * 方法: 设置创建时间
	 *
	 * @param createTime 创建时间
	 */
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 方法: 取得版本
	 *
	 * @return java.lang.Integer 版本
	 */
    @Version
	@Column(name = "version", nullable= true, length = 11)
	public Integer getVersion() {
		return this.version;
	}
	
	/**
	 * 方法: 设置版本
	 *
	 * @param version 版本
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}
}